﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="DistributionEmplyeeContract.aspx.cs" Inherits="Empolyee_DistributionEmplyeeContract" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
      <script type="text/javascript" src="../My97DatePicker/WdatePicker.js"></script>
    <link href="../My97DatePicker/skin/WdatePicker.css" type="text/css" rel="Stylesheet" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <div>
        <ul class="formul">
            <li><span class="formtitle">用户名</span>
                <asp:Label ID="EmpolyeeName" runat="server"></asp:Label>
            </li>
            <li><span class="formtitle">登录帐号</span>
                <asp:Label ID="LoginName" runat="server"></asp:Label>
            </li>
            <li><span class="formtitle">角色</span><asp:DropDownList ID="DropDownList1" runat="server"
                DataSourceID="SqlDataSource2" DataTextField="RoleName" DataValueField="RoleID" 
                    AppendDataBoundItems="True">
                <asp:ListItem Value="-1">--请选择--</asp:ListItem>
            </asp:DropDownList>
            </li>
            <li><span class="formtitle">入职日期</span><asp:TextBox runat="server" ID="txtEntryTime"
                MaxLength="13" onfocus="WdatePicker()" CssClass="Wdate"></asp:TextBox>
            </li>
            <li><span class="formtitle">令牌条形码</span><asp:TextBox runat="server" ID="Barcode"
                MaxLength="13"></asp:TextBox>
            </li>
            <li><span class="formtitle">所属分行</span>
                <asp:CheckBoxList ID="CheckBoxList1" runat="server" DataSourceID="SqlDataSource1"
                    DataTextField="BranchName" DataValueField="BranchID" RepeatDirection="Horizontal"
                    RepeatLayout="Flow" OnDataBound="BindBranch">
                </asp:CheckBoxList>
            </li>
            <li>
                <div>
                    用户合同</div>
                <asp:GridView ID="GridView1" runat="server" OnRowDataBound="GridView1_RowDataBound" AutoGenerateColumns="False">
                    <Columns>
                        <asp:BoundField DataField="ContractId" HeaderText="合同编号" SortExpression="ContractId" />
                        <asp:BoundField DataField="StartTime" HeaderText="开始时间" SortExpression="StartTime" />
                        <asp:BoundField DataField="EndTime" HeaderText="终止时间" SortExpression="EndTime" />
                        <asp:BoundField DataField="Status" HeaderText="合同状态" SortExpression="Status" />
                      
                       <asp:TemplateField HeaderStyle-Width="8%">
                                <HeaderTemplate>
                                    操作</HeaderTemplate>
                                <ItemTemplate>
                                   <a href="<%#Eval("Path") %>">下载合同</a>
                                </ItemTemplate>
                            </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </li>
        </ul>
        <asp:Button runat="server" Text="保存" ID="SaveData" OnClick="SaveData_Click" />
        <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:KOONCRMDB %>"
            SelectCommand="SELECT * FROM [Role]"></asp:SqlDataSource>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:KOONCRMDB %>"
            SelectCommand="SELECT * FROM [Branch]"></asp:SqlDataSource>
    </div>
</asp:Content>
